/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 17655
 * Date: 2025-05-13
 * Time: 19:09
 */
class A {
    public A(){
        System.out.println("A");
    }

    static {
        System.out.println("A static");
    }
}

class B extends A{
    public B(){
        System.out.println("B");
    }

    static {
        System.out.println("B static");
    }
}


public class test6{

    static B b = new B();
//    static B b1 = new B();

    public static void main(String[] args) {
        new A();

        new B();
    }
}
